package com.yq.ylmall.wechat.controller;

import com.yq.ylmall.result.Result;
import com.yq.ylmall.wechat.config.WechatPayConfig;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Project: yourlife
 * @Name: TestController
 * @Author: Jack_Li
 * @Date: 2024/6/13 20:34
 */

@RestController
@RequestMapping("/api/test")
public class TestController {

    @Resource
    private WechatPayConfig wechatPayConfig;

    @GetMapping
    public Result test() {
        String appid = wechatPayConfig.getAppid();
        return Result.ok(appid);
    }
}
